package com.company.creational.prototype_pattern.deep_clone;

import java.io.Serializable;

/**
 * 附件
 * @ClassName Attachment
 * @Author tiezheng.han
 * @Date 2020/8/27 15:54
 **/
public class Attachment implements Serializable {

    /**
     * 附件名称
     */
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void download(){
        System.out.println("下载附件，文件名为：" + name);
    }
}
